<?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
    'options'=>array(
        'title'=>$message,
        'autoOpen'=>true,
        'modal'=>true,
        'resizable'=>true,
        'text-align'=>'left',
    ),
)); ?>
    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'form-confirm-email',
        'action'=>Yii::app()->createUrl('user/auth/SNLogin'),
        'method'=>'post',
        'enableAjaxValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true,
            'validateOnChange'=>true,
        ),
    )); ?>

        <?php if(isset($userInfo)): ?>
            <?php echo $form->hiddenField($model,'userInfo',array(
                'value'=>$userInfo,
            )); ?>
        <?php endif; ?>

        <?php echo CHtml::errorSummary($model); ?>
        <?php echo $form->textField($model,'email',array(
            'value'=>$email,
            'placeholder'=>$model->getAttributeLabel('email').' *',
        )) ?>
        <?php echo $form->error($model,'email',array(
            'class'=>'form-error',
        )); ?>

        <div class="buttons">
        <?php echo CHtml::submitButton('Подтвердить'); ?>
        </div>

    <?php $this->endWidget(); ?>
<?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?>